<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Library System</title>
<link rel="stylesheet" href="/librarysystem/general.css" type="text/css"/>

<script>
function validateForm(){
	var x=document.forms["registerform"]["userid"].value;
	var y = document.forms["registerform"]["password"].value;
	if (x==null || x=="")
	  {
	  	alert("Bạn chưa điền ID");
	  	return false;
	  }
	if (y == null || y == "")
		{
			alert("Bạn Chưa điền mật khẩu");
			return false;
		}
 	return true;
}
</script>

</head>
<body>
<img src="/librarysystem/title.jpg" width="100%" height="100" />
<form method="post" action="Login" name="registerform" onsubmit="return validateForm()">
  <table width="100%" border="0" align="center">
    <tr bgcolor="#FF6600">
      <td width="13%" height="47"><div align="center"><a href="InitializeHome">Home</a></div></td>
      <td width="17%"><div align="center"><a href="findbook.jsp">Tìm sách</a></div></td>
      <td width="32%"><div align="center">
        Userid: 
        <input type="text" name="userid" id="textfield" />
        </div>
        <label>
      </label></td>
      <td width="21%"><div align="center">
        <label>
          Password: 
          <input type="password" name="password" id="textfield2" />
          </label>
        </div>        <label>
      </label></td>
      <td width="17%" align="center"><label>
          <input type="submit" name="button" id="button" value="Log in" />
      </label></td>
    </tr>
  </table>
</form>
<h2 id="notification"></h2>

</body>
</html>
